package org.amj.wn.admin.analytics;

import java.io.Serializable;
import java.util.List;

import com.google.appengine.api.datastore.Entity;

/**
 * @author FaraZ
 *	Columns are org.amj.wn.Property
 */
class Table implements Serializable {
	private static final long serialVersionUID = -360292129615750302L;

	private Row[] rows;

	public void setRows(List<Entity> result) {
		rows = new Row[result.size()];
		
		int count = 0;
		for (Entity entity : result) {
			rows[count] = new Row();
			rows[count].importData(entity);
			count++;
		}
	}

	public Row[] getRows() {
		return rows;
	}

	
}
